<?php
/**
 * pkx 配置文件
 * Author: ZeonWang
 * Date: 2017/11/23
 * Time: 10:38
 * Created by PhpStorm.
 */

return [
    'debug' => [
        'customer' => [
            'verify_tel_register_code' =>  env('DEBUG_CUSTOMER_VERIFY_TEL_REGISTER_CODE', true)
        ]
    ],

    'force_locale' => env('FORCE_LOCALE', null),

    'route_debug' => env('ROUTE_DEBUG', false), // 可否访问 debug 路由

    'open_wechat' => [
        'app_id'  => env('OPEN_WECHAT_APPID'),
        'secret'  => env('OPEN_WECHAT_SECRET'),
        'token'   => env('OPEN_WECHAT_TOKEN'),
        'aes_key' => env('OPEN_WECHAT_AES_KEY'),
        'debug'   => env('OPEN_WECHAT_DEBUG', false),
        'pay_sandbox'   => env('OPEN_WECHAT_PAY_SANDBOX', false),
        'online_acs_token_api' => env('OPEN_WECHAT_ONLINE_ACS_TOKEN_API', null),
        'cache_driver' => env('OPEN_WECHAT_CACHE_DRIVER', null)
    ],

    'wechat' => [
        'user_info_url' => env('WECHAT_USER_INFO_URL'),
        'jssdk_debug' => env('WECHAT_JSSDK_DEBUG', false)
    ],

    'proxies' => explode(',', env('TRUST_PROXIES',
        '127.0.0.1,192.168.1.1,192.168.0.1'
    )),

    'admin_login_debug_token' => env('ADMIN_LOGIN_DEBUG_TOKEN', 'panx'),

    'baidu' => [
        /**
         * @used-by \App\Services\BaiduGeoService\MapApi::geoCodeReverseQuery()
         */
        'api_ak' => env('BAIDU_API_AK'),
    ],

    'youzan' => [
        'client_id' => env('YOUZAN_CLIENT_ID'),
        'client_secret' => env('YOUZAN_CLIENT_SECRET')
    ],

    'ali' => [

        // 支付宝
        'open_platform' => [
            'app_id' => env('ALI_OPEN_PLATFORM_APP_ID'),
            // @link https://e.alipay.com/merchant/accountDetail.htm - 支付宝唯一用户号
            'alipay_pid' => env('ALI_OPEN_PLATFORM_ALIPAY_PID'),

            // 沙箱测试
            'app_id_sandbox' => env('ALI_OPEN_PLATFORM_APP_ID_SANDBOX'),
            'alipay_pid_sandbox' => env('ALI_OPEN_PLATFORM_ALIPAY_PID_SANDBOX'),
        ],

        // oss存储
        'oss' => [
            'access_key_id'     => env('ALI_ACCESS_KEY_ID'),
            'access_key_secret' => env('ALI_ACCESS_KEY_SECRET'),
            'endpoint'          => env('OSS_ENDPOINT'),
            'bucket'            => env('OSS_BUCKET'),
        ],

        // 阿里大鱼
        'sms' => [
            'cn_host'     => env('ALI_SMS_CN_HOST'),

            'access_key_id'     => env('ALI_ACCESS_KEY_ID'),
            'access_key_secret' => env('ALI_ACCESS_KEY_SECRET'),

            'register_sign'                => env('ALI_SMS_REGISTER_SIGN'),
            'register_sign_en'             => env('ALI_SMS_REGISTER_SIGN_EN'),
            // 【注册验证】验证码 xxxx，您正在注册成为 xxxx 用户，感谢您的支持！
            'register_verify_tpl_code'     => env('ALI_SMS_REGISTER_VERIFY_TPL_CODE'),
            // 【注册验证】You Direwolf verification code is ${code}. Thank you for you support!
            'register_verify_tpl_code_en'  => env('ALI_SMS_REGISTER_VERIFY_TPL_CODE_EN'),

            'change_verify_sign'           => env('ALI_SMS_CHANGE_VERIFY_SIGN'),
            'change_verify_sign_en'        => env('ALI_SMS_CHANGE_VERIFY_SIGN_EN'),

            // 验证码${code}，您正在尝试变更${product}重要信息，请妥善保管账户信息。
            'change_verify_tpl_code'       => env('ALI_SMS_CHANGE_VERIFY_TPL_CODE'),
            // You are editing account information, verification code is ${code}.
            'change_verify_tpl_code_en'    => env('ALI_SMS_CHANGE_VERIFY_TPL_CODE_EN'),

            // 您好，您的密码已经重置为${password}，请及时登录并修改密码。
            'reset_pwd_verify_tpl_code'    => env('ALI_SMS_RESET_PWD_VERIFY_TPL_CODE'),
            // Your new password is ${password}，Please login and change it!
            'reset_pwd_verify_tpl_code_en' => env('ALI_SMS_RESET_PWD_VERIFY_TPL_CODE_EN'),
        ],
    ],

    'kd_niao' => [
        'app_key'        => env('KDNIAO_APPKEY'),
        'e_bussiness_id' => env('KDNIAO_EBUSSINESSID'),
    ],

    // PayPal 支付状态 sandbox 或 live
    'pay_pal' => [
        'model' => env('PAY_PAL_MODEL'),
        'business_email' => env('PAY_PAL_CLIENT_ID'),
        'sandbox' => [
            'pay_pal_client_id' => env('SANDBOX_PAY_PAL_CLIENT_ID'),
            'pay_pal_client_secret' => env('SANDBOX_PAY_PAL_CLIENT_SECRET')
            ],
        'live' => [
            'pay_pal_client_id' => env('PAY_PAL_CLIENT_ID'),
            'pay_pal_client_secret' => env('PAY_PAL_CLIENT_SECRET')
        ],
    ],
];